package org.jadelyre.jade;

import org.jadelyre.core.Heartbeat;

public class ServerConfig {

    private String host;
    private Integer port;
    private int defaultPort = 5021;
    private boolean acceptHeartbeat = true;
    private Heartbeat heartbeat;
    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        if (port == null){
            return defaultPort;
        }
        return port;
    }
    public void setPort(Integer port) {
        this.port = port;
    }
}
